package com.ymtms.arrivalofgoods.dao;

import com.ymtms.arrivalofgoods.pojo.DriverInformation;
import org.apache.ibatis.annotations.Select;

public interface DriverInformationMapper {
    int deleteByPrimaryKey(Integer diid);

    int insert(DriverInformation record);

    int insertSelective(DriverInformation record);

    DriverInformation selectByPrimaryKey(Integer diid);

    int updateByPrimaryKeySelective(DriverInformation record);

    int updateByPrimaryKey(DriverInformation record);
    @Select("select count(*) from driver_information where id_card=#{idcard}")
    int selectCountFromDriver(String idcard);
    @Select("select*from driver_information where id_card=#{idcard}")
    DriverInformation queryIdByIdcard(String idcard);
}